﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Client2.DataService;

namespace Client2.Classes.DataSource
{
    /// <summary>
    /// Working with datasource interface
    /// </summary>
    public interface IDataSource
    {
        /// <summary>
        /// Auth user using login && password
        /// </summary>
        /// <param name="login">Login</param>
        /// <param name="password">Password</param>
        /// <returns>User data or null if error</returns>
        User GetUser(string login, string password);
    }
}